﻿@{
    var item = Model as fKanban.Model.SprintTaskEntity;
    var authorDuration = ViewData["authorDuration"] as Dictionary<string, int>;
}
<div class="kanban-item" data-id="@item.Id" id="task_item_@{@item.Id}" draggable="true">
    <div class="kanban-item-header">
        <a href="javascript:;" title="点击编辑该项" data-name="@item.Name" data-goalId="@item.GoalId" class="modify_task_@{@item.Id}">#@item.Id @item.Name</a>
    </div>
    <div class="kanban-item-content">@item.Description</div>
    <div class="kanban-item-author">
        @*<a href="http://phone.vancloa.cn/module/AdvancedSearchs.aspx?type=simpleSearch&objectname=@item.Author" class="author" id="task_author_@{@item.Id}">@item.Author</a>*@
        <a href="javascript:;" class="author" title="点击查看自己" id="task_author_@{@item.Id}">@item.AuthorDescription</a><br />
        <a href="javascript:;" class="kanban-item-duration" title="当前任务@{@item.Duration}小时/@{@item.Author}总领取了@{@authorDuration[item.Author]}小时" data-calc="@item.Duration/@{@authorDuration[item.Author]}h" data-duration="@{@item.Duration}h">@{@item.Duration}h</a>
        <a href="javascript:;" title="点击删除该项" id="remove_task_@{@item.Id}" class="_hidden">删除</a>
        <a href="javascript:;" title="点击删除,取消放弃" id="remove_confirm_@{@item.Id}" class="_hidden">确定</a>
        <a href="javascript:;" title="点击删除,取消放弃" id="remove_cancel_@{@item.Id}" class="_hidden">取消</a>
    </div>
</div>